
import java.awt.event.KeyEvent;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Event;
import java.awt.GridBagLayout;

import javax.swing.KeyStroke;
import javax.swing.JPanel;
import javax.swing.JMenuItem;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;


import java.awt.Toolkit;
import java.util.ArrayList;

public final class Win1 extends JFrame {

private JPanel contentPanel = new JPanel();
private JPanel navPanel = new JPanel();
	private JButton genButton_2 = new JButton();
	private JCheckBox genCheckBox_3 = new JCheckBox();


public  Win1 () {

this.setSize(400, 300);
navPanel.setLayout(new GridBagLayout());
this.setContentPane(navPanel);

        this.setTitle("Win1");

	    this.genButton_2.setText("Don't Click Me");
	
	    genButton_2.addActionListener(new ActionListener() {
	      public void actionPerformed(ActionEvent e) {
			
				Win2 win2 = new Win2();
	 win2.setVisible (true);
	        }
	      }
	    );
	
	     this.navPanel.add(genButton_2);

	    this.genCheckBox_3.setText("CheckCheck");
	
	    genCheckBox_3.addChangeListener(new ChangeListener() {
	      public void stateChanged(ChangeEvent e) {
				// TODO handle ChangeEvent state
	        }
	      }
	    );
	
	     this.navPanel.add(genCheckBox_3);



}
}
